package com.situ.mall.design.singleton;

// 以空间换时间
public class Singleton1 {
    //饿汉式
    private static Singleton1 INSTANCE = new Singleton1();

    //回收new对象控制权
    private Singleton1() {
    }

    public static Singleton1 getInstance() {
        return INSTANCE;
    }


}
